﻿

public class Request_Dialogue : RequestBase
{

    public const string Key = "Dialogue";

    public DialogueRequestData dialogueReqData = new DialogueRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return dialogueReqData;
        }
    }

    public Request_Dialogue() : base()
    {
        MessagePacket.key = Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"{dialogueReqData.fromUserId} 发送会话：{dialogueReqData.toUserId}");
    }


    public override ResponseData NewResponseData() => new DialogueResponseData();
}
//public class Response_Dialogue : ResponseBase
//{
//    public DialogueResponseData applyResponseData => this.responseData as DialogueResponseData;

//    public override ResponseData NewResponseData() => new DialogueResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_Apply -> Excuate");

//        (this.request as Request_Dialogue).onResponse?.Invoke(this);
//    }
//}